extends "../calxhx_2_2/calxhx_2_2.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "朱雀" 
	lv = 4
	addSkillTxt("[color=#FFFF00][焚天红莲][/color]:[color=#FFCC22]从天而降的红莲焚烧目标亚比，造成233%火系物理伤害，50%概率无视33%物防\n若目标有朱雀印记则必定无视且完全无视物防[CD:16][/color]")
	addCdSkill("fthl",16)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "fthl":
		var bf2:Buff = aiCha.hasBuff("zhuque")
		if bf2 !=null:
			addBuff(wuchuan1.new(1))
			typeHurtCha(aiCha,att.atk*2.33,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		else:
			if sys.rndPer(50):
				addBuff(wuchuan.new(1))
			typeHurtCha(aiCha,att.atk*2.33,Chara.HurtType.PHY,Chara.AtkType.SKILL)

class wuchuan:
	extends Buff
	func _init(lv = 1):
		attInit()
		var dispelable = true
		id = "wuchuan"	
		life = lv 
		att.penL = 0.33

class wuchuan1:
	extends Buff
	func _init(lv = 1):
		attInit()
		var dispelable = true
		id = "wuchuan1"	
		life = lv 
		att.penL = 1